package com.jeesite.modules.jdProduct.utils;

public enum AfsServiceEnum {

    APPLYING("申请中",10),
    OFGOODS("商家待收货",32),
    NOTPROVED("审核不通过",20),
    THROUGH("审核通过",23),
    DETERMINE("确定",40),
    COMPLETE("完成",50),
    CANCEL("取消",60);

    private String name;
    private Integer value;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getValue() {
        return value;
    }

    public void setValue(Integer value) {
        this.value = value;
    }

     AfsServiceEnum(String name, Integer value){
        this.name = name;
        this.value = value;
    }
    public static AfsServiceEnum getAfsServiceEnumByValue(Integer value){
        for(AfsServiceEnum afsServiceEnum:AfsServiceEnum.values()){
            if(afsServiceEnum.value.equals(value)){
                return afsServiceEnum;
            }
        }
        return null;
    }
}
